using ASP;
using HoWave.Web;
using HoWave.Web.Admin;
using System;
using System.Data;
using System.Web.Profile;
using System.Web.SessionState;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
public class HL_Admin_admin_Csslabelparameter : Admin, IRequiresSessionState
{
	protected HtmlHead Head1;
	protected Label LabelName;
	protected DropDownList LabelTypeList;
	protected HtmlForm form1;
	protected DefaultProfile Profile
	{
		get
		{
			return (DefaultProfile)this.Context.Profile;
		}
	}
	protected global_asax ApplicationInstance
	{
		get
		{
			return (global_asax)this.Context.ApplicationInstance;
		}
	}
	protected void Page_Load(object sender, EventArgs e)
	{
	}
	public void ListAllCss()
	{
		SkinBll skinBll = new SkinBll(this.conn);
		DataTable allSkin = skinBll.GetAllSkin();
		if (allSkin.Rows.Count > 0)
		{
			base.Response.Write("var Num = " + allSkin.Rows.Count.ToString() + ";\n");
			base.Response.Write("var arrName = new Array();\nvar arrType = new Array();\nvar arrPath = new Array();\n");
			for (int i = 0; i < allSkin.Rows.Count; i++)
			{
				base.Response.Write(string.Concat(new object[]
				{
					"arrName[",
					i,
					"] = \"",
					allSkin.Rows[i]["SkinName"].ToString(),
					"\";\n"
				}));
				base.Response.Write(string.Concat(new object[]
				{
					"arrType[",
					i,
					"] = \"",
					allSkin.Rows[i]["SkinType"].ToString(),
					"\";\n"
				}));
				base.Response.Write(string.Concat(new object[]
				{
					"arrPath[",
					i,
					"] = \"",
					allSkin.Rows[i]["SkinPath"].ToString(),
					"\";\n"
				}));
			}
		}
	}
}
